import Vue from 'vue'
import App from './App.vue'
import router from './router'



// 导入组件
import Swiper from './components/Swiper.vue'
import FlashSaleList from './components/FlashSaleList.vue'
import Search from './components/Search.vue'
import Swiper1 from './components/Swiper1.vue'
import List1 from './components/List1.vue'



import { Tabbar, TabbarItem,Form,Field,NavBar,Swipe,SwipeItem,Button,Sidebar, SidebarItem,Card} from 'vant';
// 注册组件(全局组件，可以在所有.Vue文件中使用)
Vue.component('Swiper',Swiper);
Vue.component('FlashSaleList',FlashSaleList);
Vue.component('Search',Search);
Vue.component('Swiper1',Swiper1);
Vue.component('List1',List1);
// Vue.component('Form',Form);
// Vue.component('Field',Field);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Form);
Vue.use(Field);
Vue.use(NavBar);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Button);
Vue.use(Sidebar);
Vue.use(SidebarItem);
Vue.use(Card);

Vue.config.productionTip = false


//实例化Vue对象
new Vue({
  router,//将router挂载到根实例上( 在任何一个组件中都可以通过this这个组件实例获取到路由对象: this.$router )
  render: h => h(App),
}).$mount('#app')
